<%
@not_done = @not_done_todos.select {|t| t.context_id == context.id }
# invalidate the cache every day because of staleness or
# rendering of "due in x days" that change without touching updated at of the todo
cache [context, source_view_key, current_user.date.strftime("%Y%m%d"), @tag_name] do
-%>
  <%=
    render :partial => 'todos/collection',
      :object => @not_done,
      :locals => { :settings => {
        :id => "context_#{context.id}",
        :collapsible => settings[:collapsible],
        :container_name => 'context',
        :title => show_context_name(context),
        :show_empty_containers => settings[:show_empty_containers],
        :parent_container_type => settings[:parent_container_type]
      }}
  %>
<% end %>
